package javacore.day8;

public class ClassicSingleton {
	private static ClassicSingleton instance = null;

	private ClassicSingleton() {
		System.out.println(this.toString());
	}

	public static ClassicSingleton getInstance() {
		if (instance == null) {
			instance = new ClassicSingleton();
		}
		return instance;
	}

}
